home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97a.txt
/
000095_icon-group-sender _Sun Mar 23 07:32:50 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
1KB
Received: by cheltenham.cs.arizona.edu; Sun, 23 Mar 1997 18:40:55 MST
Date: Sun, 23 Mar 1997 07:32:50 -0600 (CST)
From: "Chris D. Tenaglia" <cdt@post.its.mcw.edu>
To: icon-group@cs.arizona.edu
Subject: {Q
Message-Id: <Pine.ULT.3.90.970323072605.3105A-100000@post.its.mcw.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 740
Oops. Forgot a little something.
procedure main()
while line := read() do
{
line := if find("{Q",line) then "\t" || line || "\n\t" else line || "\n"
writes(line)
}
end
Amazing what a sip of coffee can accomplish. Another nice feature
of icon is that you don't have to terminate statements with ;
I use ; to put multiple expressions on one line when it helps
the code. While || appends strings and it works in a write()
context, write(a,b,c,d) is more traditional, with comma separation.
Chris Tenaglia (system manager) | cdt@post.its.mcw.edu
Medical College of Wisconsin |
8701 W. Watertown Plank Rd. | Ce que vous voyez est
Milwaukee, WI 53226 (414)456-8765 | ce que vous obtenez !